package com.itheima_04;

public class Test {
    public static void main(String[] args) {
        Rabbit r=new Rabbit();
        r.setAge(2);
        r.setNumOfLegs(4);
        r.eat();
        Tiger t=new Tiger( );
        t.setAge(2);
        t.setNumOfLegs(4);
        t.eat();
    }
}
